.color-container {
    width: 610px;
    background: #333;
    padding: 10px;
    font-size: 0;
    margin: 30px auto;
}

.color-container>div {
    display: inline-block;
    background: #fff;
    vertical-align: top;
    box-shadow: 0 0 5px 0 #999;
}

.color-container .main-con {
    width: 550px;
    height: 430px;
}

.color-container .main-con .bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.color-container .side-con {
    width: 50px;
    height: 430px;
}

.color-container .main-wrap,
.color-container .side-wrap {
    position: relative;
}

.color-container .side-wrap {
    margin-left: 10px;
}

.color-container .main-drag,
.color-container .side-drag {
    position: absolute;
    border: 1px solid #fff;
    background: rgba(0, 0, 0, .3);
}

.color-container .main-drag {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    z-index: 5;
    left: -7px;
    top: -7px;
}

.side-drag {
    height: 6px;
    width: 54px;
    border-radius: 2px;
    left: -3px;
    top: -4px;
    transition: top .1s;
}

.find-color {
    width: 60px;
    height: 60px;
    position: absolute;
    top: 0;
    left: -70px;
    background: #fff;
}

.color-container .show-color {
    display: block;
    margin: 10px 0 0;
    height: auto;
    padding: 10px;
}

.color-full {
    display: inline-block;
    width: 58px;
    height: 58px;
    border: 1px solid #ccc;
}

.color-text {
    display: inline-block;
    margin-left: 30px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    font-size: 14px;
    vertical-align: top;
}

.color-text input {
    width: 24px;
    margin: 0 15px 0 15px;
}

.side-con {
    background: linear-gradient(to bottom, red 0%, #ff0 17%, lime 33%, cyan 50%, blue 66%, #f0f 83%, red 100%);
}

.main-con {
    background: red;
}

.left-white-bg {
    background: linear-gradient(to right, #fff 0%, transparent 100%);
}

.bottom-black-bg {
    background: linear-gradient(to bottom, transparent 0%, #000 100%);
}